/**
 * Created by Administrator on 2015/12/27 0027.
 */
object Object_Class {

  def main(args: Array[String]) {
    val one=new Hello
    one.add

  }
}
class Hello{
  private val value1="world"
  val value2="WORLD"
  def add = println(value1+value2)
}
class Person(val name:String,val address:String){

  println("HELLOWORLD IS CREATED")
}

class Studnet (){
  var name=""
  var age=0
  def this(m:String){
    this()
    this.name=m
  }
  def this(name:String, age:Int){
    this()
    this.age=age
    this.name=name
  }

}

